package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.GoodsUnitDao;
import com.atguigu.jxc.entity.Unit;
import com.atguigu.jxc.service.GoodsUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * ClassName: GoodsUnitServiceImpl
 * Package: com.atguigu.jxc.service.impl
 * Description:
 *
 * @Author 梅超凡
 * @Create 2025/2/21 18:55
 * @Version 1.0
 */
@Service
public class GoodsUnitServiceImpl implements GoodsUnitService {

    @Autowired
    private GoodsUnitDao goodsUnitDao;
    @Override
    public Map<String, Object> getUnitList() {
        Map<String, Object> resultMap = new HashMap<>();

        List<Unit> goodsUnitList = goodsUnitDao.getUnitList();


        resultMap.put("rows", goodsUnitList);
        return resultMap;
    }
}
